﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SHRP.UI.Command
{
    class SystemColseCommand:CommandBase
    {
        public override void CommandBody(object sender, params object[] paras)
        {
            if (MessageBox.Show(Properties.Resources.SystemColseComfirm, Properties.Resources.Colse, MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.OK)
            {
                Application.Exit();
            }
        }

        public override CommandFamily Family
        {
            get { return CommandFamily.Command_SystemClose; }
        }
    }
}
